<div class="sc_form_body">
    <form action="{$view['id']?U('save'):U('add')}?spm={$spm}" id="form" class="layui-form layui-form-pane">
        <input type="hidden" name="id" value="{$view.id|default=''}" />
        <div class="layui-form-item">
            <label class="layui-form-label label-required">名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" value="{$view.title|default=''}" placeholder="模型名称" datatype="zh2-8" nullmsg="请输入名称!" errormsg="请使用2-8位中文!" autocomplete="off" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">唯一标识</label>
            <div class="layui-input-block">
                <input type="text" name="flag" value="{$view.flag|default=''}" placeholder="模型唯一标识" datatype="en3-16" nullmsg="请输入模型唯一标识!" errormsg="请使用3-16位英文或拼音!" autocomplete="off" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn">保存</button>
            </div>
        </div>
    </form>
</div>
